import Vue from 'vue'
import App from './App.vue'
import router from './router'
//引入全局基础样式
import './styles/base.less'
//引入axios并设置基准地址
//  import axios from 'axios'
//  Vue.prototype.$axios = axios
//  axios.defaults.baseURL = 'http://api-toutiao-web.itheima.net/'


//引入element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);


//事件总线
const bus = new Vue()
Vue.prototype.$bus = bus

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
